package org.springblade.modules.admin.enums.erp.options;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springblade.modules.admin.enums.erp.tables.SalesOrderEnum;

/**
 * @author: Sharry
 * @createTime: 2024-12-30 14:44
 * @version: Version-1.0
 */
@Getter
@AllArgsConstructor
public enum SalesOrderStatusEnum {

	/**
	 * 待发货
	 */
	WAIT_DELIVERY(SalesOrderEnum.ORDER_STATUS.getFieldId(), "1", "待发货"),

	/**
	 * 已全部发货
	 */
	ALL_DELIVERY(SalesOrderEnum.ORDER_STATUS.getFieldId(), "2", "已全部发货"),

	/**
	 * 已作废
	 */
	INVALID(SalesOrderEnum.ORDER_STATUS.getFieldId(), "3", "已作废"),

	/**
	 * 审批中
	 */
	APPROVAL(SalesOrderEnum.ORDER_STATUS.getFieldId(), "4", "审批中"),

	/**
	 * 已驳回
	 */
	REJECT(SalesOrderEnum.ORDER_STATUS.getFieldId(), "5", "已驳回"),

	/**
	 * 已签收
	 */
	SIGN(SalesOrderEnum.ORDER_STATUS.getFieldId(), "6", "已签收"),

	/**
	 * 已撤销
	 */
	CANCEL(SalesOrderEnum.ORDER_STATUS.getFieldId(), "7", "已撤销"),

	/**
	 * 已部分发货
	 */
	PART_DELIVERY(SalesOrderEnum.ORDER_STATUS.getFieldId(), "8", "已部分发货");

	/**
	 * 字段 ID
	 */
	final String fieldId;

	/**
	 * 选项 ID
	 */
	final String id;

	/**
	 * 选项名称
	 */
	final String name;
}
